/*
 * @(#)JwiIterator.java	1.0 08/01/07
 *
 * Copyright 2007 Fabio Gasparetti. All rights reserved.
 */

package org.tabularium.text.nlp.wordnet.jwi;

import java.util.Iterator;
import edu.mit.jwi.item.*;

/**
 * 
 * @author Fabio Gasparetti
 * @version 1.0, 08/01/07
 */
public class JwiIterator implements Iterator {
	private Iterator iter = null;
	
	JwiIterator(Iterator iter) {
		this.iter = iter;
	}
	
	public boolean hasNext() {
		return iter.hasNext();
	}

	public Object next() {
		ISynset jwisynset = (ISynset)iter.next();
		JwiSynset synset = new JwiSynset();
		synset.pos = JwiPartOfSpeech.translate(jwisynset.getPartOfSpeech());
		synset.jwiSynsetID = jwisynset.getID();
		synset.gloss = jwisynset.getGloss();
		return synset;
	}

	public void remove() {
		// TODO Auto-generated method stub		
	}

	
}
